package com.michau.testitas.common.model.answer;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

/**
 * User: michau
 * Date: 1/9/13
 * Time: 8:48 PM
 */
@Entity
@DiscriminatorValue(value = "textanswer")
public class TextAnswer extends Answer<TextAnswerMode> {

    @Enumerated(EnumType.STRING)
    private TextAnswerMode answerMode = TextAnswerMode.MATCH_ANY;

    @Override
    public TextAnswerMode getAnswerMode() {
        return answerMode;
    }

    @Override
    public void setAnswerMode(TextAnswerMode answerMode) {
        this.answerMode = answerMode;
    }
}
